﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Lines
{
    public static class LineBLL
    {
        public static int GetLineCount(IList<Condition> conditionArray)
        {
            return LineDAL.GetLineCount(conditionArray);
        }

        public static List<LineEntity> GetLineList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return LineDAL.GetLineList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static List<LineEntity> GetLineList(IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return LineDAL.GetLineList(conditionArray, sortField, sortMode);
        }

        public static LineEntity GetLine(int lineID)
        {
            return LineDAL.GetLine(lineID);
        }

        public static int InsertLine(LineEntity line)
        {
            return LineDAL.InsertLine(line);
        }

        public static int UpdateLine(LineEntity line)
        {
            return LineDAL.UpdateLine(line);
        }

        public static int DeleteLine(int lineID)
        {
            return LineDAL.DeleteLine(lineID);
        }

        public static int DeleteLineByShopID(int lineID, int shopID)
        {
            return LineDAL.DeleteLineByShopID(lineID, shopID);
        }

        public static int SetLineEnable(int lineID)
        {
            return LineDAL.SetLineEnable(lineID);
        }

        public static int HitLine(int lineID)
        {
            return LineDAL.HitLine(lineID);
        }
    }
}
